package final_;

/**
 * @Author 小闽
 * @Date 2024/9/10 19:41
 * @PackageName: final_
 * @ClassName: FinalExercise02
 * @Description: final练习02
 * @Version 1.0
 */
public class FinalExercise02 {
    public static void main(String[] args) {

    }
}

class Something{
    public int addOne(final int x){
//        ++x; // x被修饰为final，不能被修改
        return x+1;
    }
}